package com.study.order_service.client.fallback;

import com.study.order_service.client.ProductClinent;
import org.springframework.stereotype.Component;

import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: LWM
 * @date: 2019/2/21
 * @time: 14:18
 * Description: 请求熔断器
 */
@Component
public class ProductClientFallBack implements ProductClinent {
    @Override
    public String findById(int id) {
        System.out.println("调用product-service findById异常");
        return null;
    }
}
